package com.shiguiwu.springmybatis.designpattern.adapter.scene;

import cn.hutool.json.JSONUtil;
import com.shiguiwu.springmybatis.designpattern.adapter.scene.mq.POPOrderDelivered;
import lombok.extern.slf4j.Slf4j;

/**
 * @description: 用一坨坨代码实现
 * @author: stone
 * @date: Created by 2021/8/19 11:37
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.adapter.scene
 */
@Slf4j
public class POPOrderDeliveredService {

    public void onMessage(String message) {
        POPOrderDelivered mq = JSONUtil.toBean(message, POPOrderDelivered.class);

        //处理业务中。。。。
        log.info("create_account 处理业务中。。。。。===> {}", mq);

    }
}
